package com.scujj.service;

import com.scujj.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@FeignClient(value = "service-user")
public interface UserService {

    @GetMapping("/user")
    Result getUserByToken(@RequestHeader Map<String,String> map);

    @GetMapping("/user/id")
    Result getUserByIdList(@RequestParam List<Long> id);

    @GetMapping("/home/subcribe")
    Result getSubscribeList(@RequestParam("id") long uid);

}
